<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('任务详细')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-user-copy">
        <input name="id"  th:value="*{ids}" type="hidden">
        <div class="col-md-12">
            <div class="form-group" th:each="task : ${taskList}">
                <h2>店铺名称:<span th:text="${task.storeName}"></span> 产品链接:<span th:text="${task.productLink}"></span> 单价(元):<span th:text="${task.productAmount}"></span> 备注:<span th:text="${task.remark}"></span></h2>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "system/manage";

    function submitHandler() {
        var ids=$('#form-user-copy  input[name="id"]').val();
        //var data = { "ids": ids };
        if ($.validate.form()) {
            $.operate.get(prefix + "/settleCopy/"+ids,function (result) {
                $.modal.close();
                var parent = activeWindow();
                if(result.code==0){
                    parent.$.modal.msgSuccess(result.msg);
                    parent.$.table.refresh();
                }else{
                    parent.$.modal.msgError(result.msg);
                }
            });
        }
    }
</script>
</body>
</html>
